#include "dominion_helpers.h"
#include "dominion.h"
#include "rngs.h"
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <math.h>

void myAssert(int a, int b)
{
	if (a != b)
		printf("error\n");
}

int testCardEffect( int p, struct gameState *g)
{
	struct gameState t;
	memcpy(&t, g, sizeof(struct gameState));

	cardEffect(adventurer, 0, 0, 0, g, 0, 0);

	return 0;
}

// cardEffect(int card, int choice1, int choice2, int choice3, 
//           struct gameState *state, int handPos, int *bonus)
int main()
{
	printf("Testing cardEffect, case = adventurer:\n");
	// Type   = action
	// Effect = reveal cards from deck until you reveal 2 Treasure cards.
	//         Put those in your hand and discard other revealed cards
	// Cost   = 6 coins

	int i, p = 0;
	struct gameState g;

	g.numPlayers = 2;
	g.whoseTurn = p;
	g.handCount[p] = 5;	
	for (i = 0; i < 5; i++) {
		g.hand[p][i] = estate;
	}
	g.deckCount[p] = 5;
	for (i = 0; i < 5; i++) {
		g.deck[p][i] = feast;
	}
	g.discardCount[p] = 5;
	for (i = 0; i < 5; i++) {
		g.discard[p][i] = mine;
	}

	testCardEffect(p, &g);

	printf("Tests Done\n"); return 0;
}
